﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    /// <summary>
    /// Seat
    /// </summary>
    public class Seat
    {

        /// <summary>
        /// Seat 构造函数
        /// </summary>
        public Seat()
        { }


        /// <summary>
        /// Seat OR映射构造函数
        /// </summary>
        public Seat(System.Data.IDataReader dr)
        {
            this.SeatID = (Guid)dr["SeatID"];
            this.SeatName = Convert.ToString(dr["SeatName"]);
            this.MAC = Convert.ToString(dr["MAC"]);
            this.LastModifyTime = Convert.ToDateTime(dr["LastModifyTime"]);
            this.DeleteFlag = Convert.ToBoolean(dr["DeleteFlag"]);
        }


        /// <summary>
        /// 唯一编号
        /// </summary>
        public Guid SeatID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string SeatName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string MAC { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string PlaneNumbers { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModifyTime { get; set; }

        /// <summary>
        /// 逻辑删除标记
        /// </summary>
        public bool DeleteFlag { get; set; }

        public override string ToString()
        {
            return string.Format("[席位：{0}]", this.SeatID);
        }
    }
}
